/**
 * 
 */
package aufgabe_01;

/**
 * @author Viktor 
 * @version 1.0
 */
public class Pkt {
	
	
	private int x;
	private int y;
	public static int anzahl;
	
	public Pkt( int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void print(){
		System.out.println("(" + this.x + "|" + this.y + ")");
	}
	
	public static void main(String[] args){
		System.out.println(anzahl);
		Pkt p1 = new Pkt(1, 1);
		anzahl++;
		System.out.println(anzahl);
		Pkt p2 = new Pkt(2, 2);
		anzahl++;
		System.out.println(anzahl);
		
	}
	///////////////////////////////////////////////////////////////////
	////////////////////GETTERS AND SETTERS ///////////////////////////
	///////////////////////////////////////////////////////////////////

	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}
	/**
	 * @param x the x to set
	 */
	public void setX(int x) {
		this.x = x;
	}
	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}
	/**
	 * @param y the y to set
	 */
	public void setY(int y) {
		this.y = y;
	}

	
}
